//
//  CTContactShowItem.m
//  CT
//
//  Created by liufanwei on 15/4/10.
//  Copyright (c) 2015年 liufanwei. All rights reserved.
//

#import "CTContactShowItem.h"

@implementation CTContactShowItem
@synthesize Name;
@synthesize PhoneNumber;
@synthesize PingYing;
@synthesize Addr;
@synthesize Cid;
@synthesize SortStr;
@synthesize Date;
@synthesize ImageData;

+(CTContactShowItem*)create{
    CTContactShowItem  * item = [[CTContactShowItem alloc] init];
    item.Name = [NSString string];
    item.PhoneNumber = [NSString string];
    item.PingYing = [NSString string];
    item.Addr = [NSString string];
    item.Cid = [NSString string];
    item.SortStr = [NSString string];
    return item;
}

+(CTContactShowItem*)createWithEntity:(CTContactEntity*)item{
    CTContactShowItem  * rtn = [[CTContactShowItem alloc] init];
    rtn.Name = [NSString stringWithString:item.name];
    rtn.PhoneNumber = [NSString stringWithString:item.phonenumber];
    rtn.PingYing = [NSString stringWithString:item.pingying];
    rtn.Addr = [NSString stringWithString:item.addr];
    rtn.Cid = [NSString stringWithString:item.cid];
    rtn.SortStr = [NSString stringWithString:item.sortstr];
    rtn.Date = item.date;
    return rtn;
}
@end
